package events

type EventParam[T any] struct {
	EventBase[T, func(T)]
	//eventChan chan T
}

func NewEventParam[T any]() *EventParam[T] {
	return &EventParam[T]{}
}

func (_this *EventParam[T]) Event(param T) {
	cal := func(eventParam *func(T)) {
		(*eventParam)(param)
	}
	_this.EventBase.event(&cal)
}
